package com.pt.chitra.view.albumView.controller
{
	import com.pt.chitra.view.albumView.model.GalleryProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class GetGalleriesCommand extends SimpleCommand
	{
		public function GetGalleriesCommand()
		{
			super();
		}
		
		 override public function execute( note:INotification ) :void    
        {
           facade.registerProxy(new GalleryProxy());
           
           galleriesProxy.getGallries();
        }
		
		private function get galleriesProxy():GalleryProxy{
			return facade.retrieveProxy(GalleryProxy.NAME) as GalleryProxy;
		}
		
	}
}